﻿<%@ Page Language="C#" AutoEventWireup="true" 
    CodeBehind="SupportRequestWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.SupportRequestWindow" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModalWindow.Master" %>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder"></asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<asp:MultiView runat="server" ID="MultiView" ActiveViewIndex="0">
		<asp:View ID="ViewForm" runat="server">
			<fieldset>
				<asp:LoginView ID="LoginView1" runat="server">
					<AnonymousTemplate>
						<p><label><asp:Literal ID="Label1" runat="server" Text="<%$ Resources: Medianamik_ModalWindows, SupportRequest_UserMailAddressLabel %>"></asp:Literal><asp:RequiredFieldValidator runat="server" ID="rfvUserMailAddress" ControlToValidate="txtUserMailAddress" ErrorMessage=" *" CssClass="TxtErreur"></asp:RequiredFieldValidator></label><asp:TextBox runat="server" ID="txtUserMailAddress" CssClass="TxtBox" style="width:300px;" Text='<%# Request.QueryString["email"] %>'></asp:TextBox></p>
						<p><label><asp:Literal ID="Label2" runat="server" Text="<%$ Resources: Medianamik_ModalWindows, SupportRequest_UserNameLabel %>"></asp:Literal><asp:RequiredFieldValidator runat="server" ID="rfvUserName" ControlToValidate="txtUserName" ErrorMessage=" *" CssClass="TxtErreur"></asp:RequiredFieldValidator></label><asp:TextBox runat="server" ID="txtUserName" CssClass="TxtBox" style="width:200px;" Text='<%# Request.QueryString["username"] %>'></asp:TextBox></p>
					</AnonymousTemplate>
					<LoggedInTemplate>
						<p><label><asp:Literal ID="Label1" runat="server" Text="<%$ Resources: Medianamik_ModalWindows, SupportRequest_UserMailAddressLabel %>"></asp:Literal></label><asp:Label runat="server" ID="txtUserMailAddress" Text='<%#  MedianamikUser.Email %>' ></asp:Label></p>
						<p><label><asp:Literal ID="Label2" runat="server" Text="<%$ Resources: Medianamik_ModalWindows, SupportRequest_UserNameLabel %>"></asp:Literal></label><asp:Label runat="server" ID="txtUserName" Text="<%#  MedianamikUser.UserName %>" ></asp:Label></p>
					</LoggedInTemplate>
				</asp:LoginView>
				<p><label><asp:Literal runat="server" Text="<%$Resources: Medianamik_ModalWindows, SupportRequest_MessageLabel %>" /><asp:RequiredFieldValidator runat="server" ID="rfvMessage" ControlToValidate="txtMessage" ErrorMessage=" *" CssClass="TxtErreur"></asp:RequiredFieldValidator></label><asp:TextBox runat="server" TextMode="MultiLine" CssClass="TxtBox" style="width:520px;height:100px;" ID="txtMessage"></asp:TextBox></p>
				<p><asp:Button runat="server" ID="btnSubmit" CssClass="Btn" OnClick="btnSubmit_Click" Text="<%$Resources: Medianamik_Global, SubmitButton %>" /></p>
			    <p><asp:Literal ID="Literal1" runat="server" Text="<%$Resources: Medianamik_Global, AllRequiredField %>" /></p>
			</fieldset>
		</asp:View>
		<asp:View ID="ViewRequestSent" runat="server">
			<p><asp:Literal runat="server" Text="<%$ Resources:Medianamik_ModalWindows, SupportRequest_MessageSent  %>"></asp:Literal></p>
		</asp:View>
		<asp:View ID="ViewRequestError" runat="server">
			<p><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Medianamik_ModalWindows, SupportRequest_Error  %>"></asp:Literal></p>
		</asp:View>
	</asp:MultiView>
</asp:Content>
